<taglib name="html"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[栏目管理]-[字段分组]</title>
<load href="__PUBLIC__/Css/admin_style.css"/>
</head>

<body>
<!-- layout::Admin:Syscolumn:inc_top::0 -->
<hr>
<if condition="empty($sg_list) eq true">对不起，还没有任何字段分组<else/>
<table border="0" cellspacing="10" cellpadding="0" style="text-align:center">
  <tr>
    <td>字段名称</td>
    <td>顺序</td>
    <td>操作</td>
  </tr>
  <volist name="sg_list" id="vo">
    <tr>
    <td>{$vo.group_name}</td>
     <td><if condition="$vo.sequence lt $maxseq"><a href="__ACTION__/action/up/id/{$vo.id}/table/{$table}">↑</a></if>&nbsp;<if condition="$vo.sequence gt $minseq"><a href="__ACTION__/action/down/id/{$vo.id}/table/{$table}">↓</a></if></td>
    <td><a href="__ACTION__/action/edit/table/{$table}/id/{$vo.id}">修改</a>&nbsp;|&nbsp;<a href="__ACTION__/action/delete/table/{$table}/id/{$vo.id}">删除</a>&nbsp;|&nbsp;<a href="__ACTION__/table/{$table}">添加</a></td>
  </tr>
  </volist>
</table>
</if>
<eq name="Think.get.action" value="edit">
<table border="0" cellspacing="0" cellpadding="5" style="margin-top:20px">
<form name="form1" id="form1"  method="post" action="__ACTION__/action/update/table/{$table}">
  <tr>
    <td colspan="2"><div align="center">新增字段分组</div></td>
  </tr>
  <tr>
    <td>字段分组名称：</td>
    <td><input type="text" name="group_name" id="group_name" value="{$sg_info.group_name}"></td>
  </tr>
  <tr>
    <td colspan="2"><div align="center">
      <input type="submit" name="button" id="button" value="修  改"  onClick="submit();this.disabled=true"><input type="hidden" id="id" name="id" value="{$sg_info.id}"/>
      <input type="reset" name="button2" id="button2" value="返  回">
      </div></td>
  </tr>
  </form>
</table>
<else/>
<table border="0" cellspacing="0" cellpadding="5" style="margin-top:20px">
<form name="form1" id="form1"  method="post" action="__ACTION__/action/insert/table/{$table}">
  <tr>
    <td colspan="2"><div align="center">新增字段分组</div></td>
  </tr>
  <tr>
    <td>字段分组名称：</td>
    <td><input type="text" name="group_name" id="group_name"></td>
  </tr>
  <tr>
    <td colspan="2"><div align="center">
      <input type="submit" name="button" id="button" value="添  加"  onClick="submit();this.disabled=true">
      <input type="reset" name="button2" id="button2" value="返  回">
      </div></td>
  </tr>
  </form>
</table>
</eq>
</body>
</html>
